<div ng-controller="ItemCtrl" ng-init="sku2skusAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/item/virtual">{{'组合商品'}}</a></li>
        <li class="active">
            {{!kanjia_activity_id?"创建":"edit"|translate}}
        </li>
    </ul>
    <form name="Tradeform" class="sui-form form-horizontal" novalidate>
        <div mywizard class="sui-steps">
            <step>
                <label><span class="round">1</span><span>选择sku</span></label>
                <i class="triangle-right-bg"></i><i class="triangle-right"></i>
            </step>
            <step>
                <label><span class="round">2</span><span>选择子sku</span></label>
                <i class="triangle-right-bg"></i><i class="triangle-right"></i>
            </step>
            <step>
                <label><span class="round">3</span><span>完成</span></label>
                <i class="triangle-right-bg"></i><i class="triangle-right"></i>
            </step>
            <div stepcontent0 class="stepContent">
                <div class="stepbody">
                    <choice-item item-check="itemdata(items)" mult="no" out-html="yes"></choice-item>
                    <table class="sui-table table-bordered" ng-show="checked_item" style="margin-top: 10px;">
                        <thead>
                            <tr>
                                <th>＃</th>
                                <th>{{"sku_properties"|translate}} </th>
                                <th>{{"skus_id"|translate}} </th>
                                <th>{{"价格"|translate}}</th>
                                <th>{{"remark"|translate}} </th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>
                                    {{checked_item.sku_id}}
                                </td>
                                <td>{{checked_item.sku_properties | skuname}}</td>
                                <td>{{checked_item.sku_outer_id}}</td>
                                <td>{{checked_item.sku_price}}</td>
                                <td>{{checked_item.remark}}</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div>
                    <button type="button" id="next1" class="sui-btn btn-primary" mywizard-next ng-disabled="!checked_item">{{'Next step'|translate}}</button>
                </div>
            </div>
            <div stepcontent1 class="stepContent">
                <div class="stepbody">
                    <!-- <choice-item item-check="itemdata1(items)" mult="yes"></choice-item> -->
                    <choice-item item-check="itemdata1(items)" mult="yes"></choice-item>

                    <table class="sui-table table-bordered" ng-show="checked_item1" style="margin-top: 10px;">
                        <thead>
                            <tr>
                                <th>＃</th>
                                <th>{{"sku_properties"|translate}} </th>
                                <th>{{"skus_id"|translate}} </th>
                                <th>{{"价格"|translate}}</th>
                                <th>{{"数量"|translate}} </th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr ng-repeat="sku in checked_item1">
                                <td><img src="{{sku.imgurl}}" width="200" /></td>
                                <td>{{sku.sku_properties | skuname}}</td>
                                <td>{{sku.sku_outer_id}}</td>
                                <td>{{sku.sku_price}}</td>
                                <td>
                                    <input type="number" name="skunum" ng-model="sku.num" class="input-large">
                                </td>
                                <td>
                                    <button class="sui-btn btn-primary" ng-show="sku_id" ng-click="deleteVirtualItem(sku_id,sku.sku_id)">删除</button>
                                    <button class="sui-btn btn-primary" ng-show="!sku_id" ng-click="deleteSkuItem($index)">删除</button>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    </table>
                </div>
                <div>
                    <button type="button" class="sui-btn btn-primary" mywizard-previous>上一步</button>
                    <button id="kanjiaAdd" class="sui-btn btn-primary" ng-disabled="!checked_item1" ng-click="sku2skusAdd();">
                        保存
                    </button>
                </div>
            </div>
        </div>
    </form>
</div>